<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020/7/20
  Time: 10:50
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
  <head>
    <title>login</title>
  </head>
  <body>
  <%
      Object username = session.getAttribute("username");
      if (username ==null ||username.equals("")){
  %>
    <a href="/day10/login.jsp">请登录</a>
  <%
      }else {
  %>
    <%="欢迎"+username%><br/>
    <a href="/day10/AddStu.jsp">添加学生</a>
    <a href="/day10/ListStu">查看学生</a>
  <%
      }
  %>
  </body>
</html>
